package com.lvmama.client.rhino;

import com.lvmama.common.result.Result;
import com.lvmama.pojo.dto.rhino.page.PageAnalysisDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("rhino-web-service")
@RequestMapping("${server.servlet.context-path}")
public interface PageClient {


    @RequestMapping(method = RequestMethod.POST, value = "/traffic/regionData")
    Result<Map<String, Object>> regionData(@RequestBody PageAnalysisDTO pageAnalysisDTO);

    @RequestMapping(method = RequestMethod.POST, value = "/traffic/landingPage")
    Result<Map<String, Object>> landingPageData(@RequestBody PageAnalysisDTO pageAnalysisDTO);

    @RequestMapping(method = RequestMethod.POST, value = "/traffic/landingPageByNum")
    Result<Map<String, Object>> landingPageByNum(@RequestBody PageAnalysisDTO pageAnalysisDTO);

    @RequestMapping(method = RequestMethod.POST, value = "/traffic/querylist")
    Result<Map<String, Object>> querylist(@RequestBody PageAnalysisDTO pageAnalysisDTO);


    @RequestMapping(method = RequestMethod.POST, value = "/traffic/getChildCodeList")
    Result<Map<String, Object>> getChildCodeList(@RequestParam("parent_id")int parent_id);


    @RequestMapping(method = RequestMethod.POST, value ="/traffic/conversionlist")
    Result<Map<String, Object>> channelList(@RequestBody PageAnalysisDTO pageAnalysisDTO);

    @RequestMapping(method = RequestMethod.POST, value ="/traffic/channelDetailList")
    Result<Map<String, Object>> channelDetailList(@RequestBody PageAnalysisDTO pageAnalysisDTO);

    @RequestMapping(method = RequestMethod.POST, value ="/traffic/queryPageCode")
    Result<Map<String, Object>> queryPageCode(@RequestParam("categoryId") String categoryId);


}
